package com.wr.service.article;

import com.wr.model.Article;
import com.wr.model.RestResponse;
import com.wr.utils.PageData;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author weirong
 * @Title:
 * @Description:
 * @date 2018/6/1118:15
 */
public interface ArticleService {

     Article detail(Integer id);

     RestResponse<Article> add(Article article);

     List<Article> mainList(Integer pageNo, Integer pageSize);

     List<Article> listPd(PageData pd);
}
